package com.wedo.mall.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by lxy on 2017/6/10.
 */

public class GoodsCategory implements Parcelable {
    /**
     * id : 256
     * category_name : 复合机
     * pid : 248
     * category_path : 3/248/256
     * app_icon :
     */

    public String id;
    public String category_name;
    public String pid;
    public String category_path;
    public String app_icon;

    /**更多类别*/
    public int more = -1;


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.category_name);
        dest.writeString(this.pid);
        dest.writeString(this.category_path);
        dest.writeString(this.app_icon);
    }

    public GoodsCategory() {
    }

    protected GoodsCategory(Parcel in) {
        this.id = in.readString();
        this.category_name = in.readString();
        this.pid = in.readString();
        this.category_path = in.readString();
        this.app_icon = in.readString();
    }

    public static final Parcelable.Creator<GoodsCategory> CREATOR = new Parcelable.Creator<GoodsCategory>() {
        @Override
        public GoodsCategory createFromParcel(Parcel source) {
            return new GoodsCategory(source);
        }

        @Override
        public GoodsCategory[] newArray(int size) {
            return new GoodsCategory[size];
        }
    };
}
